<include file="Index/header" />
<include file="Index/left" />
<!-- 内容区域 -->
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
    <div class="row-content am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title  am-cf">用户管理</div>


                    </div>
                    <div class="widget-body  am-fr">
                        <form action="admin.php" method="get">
                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                            <div class="am-form-group">
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                        <button type="button" class="am-btn am-btn-default am-btn-success" id="button-add"><span class="am-icon-plus"></span> 新增</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                            <div class="am-form-group tpl-table-list-select">

                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                        </div>
                            <input type="hidden" name="c" value="product"/>
                            <input type="hidden" name="a" value="index"/>
                        </form>
                        <div class="am-u-sm-12">
                            <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black missj-table">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>用户头像</th>
                                    <th>用户名</th>
                                    <th>真实姓名</th>
                                    <th>注册时间</th>
                                    <th>最后登录时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="user" id="user">
                                <tr class="gradeX">
                                    <td class="am-text-middle">{$user.id}</td>
                                    <td>
                                        <img src="{$user.thumb}" width="50" height="50" class="tpl-table-line-img" alt="">
                                    </td>
                                    <td class="am-text-middle">{$user.username}</td>
                                    <td class="am-text-middle">{$user.realname}</td>
                                    <td class="am-text-middle">{$user.inputtime|date="Y-m-d H:i",###}</td>
                                    <td class="am-text-middle">{$user.lastlogintime|date="Y-m-d H:i",###}</td>
                                    <td class="am-text-middle">
                                        <div class="tpl-table-black-operation">
                                            <a href="javascript:void(0)" id="missj-edit" attr-id="{$user['id']}">
                                                <i class="am-icon-pencil"></i> 编辑
                                            </a>
                                                <if condition="$user.id neq $_SESSION['adminUser']['id']">
                                            <a href="javascript:void(0)" id="missj-delete"  attr-id="{$user.id}" attr-message="删除" class="tpl-table-black-operation-del">
                                                <i class="am-icon-trash"></i> 删除
                                            </a>
                                                </if>
                                        </div>
                                    </td>
                                </tr>
                                </volist>
                                <!-- more data -->
                                </tbody>
                            </table>
                        </div>
                        <div class="am-u-lg-12 am-cf">

                            <div class="am-fr">
                                {$pageres}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
<script>
    var SCOPE = {
        'edit_url' : 'admin.php?c=admin&a=edit',
        'add_url' : 'admin.php?c=admin&a=add',
        'set_status_url' : 'admin.php?c=admin&a=setStatus',
    }
</script>
<include file="Index/footer" />